import request from '@/utils/request'

// 账户列表分页

export function accountPage(query) {
  return request({
    url: '/manage/upiAccount/page',
    method: 'get',
    params: query
  })
}
// 新增账户
export function addAccount(data) {
  return request({
    url: '/manage/upiAccount/add',
    method: 'post',
    data
  })
}
// 账户启用/停用
export function startAndStop(data) {
  return request({
    url: '/manage/upiAccount/startAndStop',
    method: 'post',
    data
  })
}
// 账户删除

export function deleteAccount(data) {
  return request({
    url: '/manage/upiAccount/delete',
    method: 'post',
    data
  })
}
// 账户修改

export function updateAccount(data) {
  return request({
    url: '/manage/upiAccount/update',
    method: 'post',
    data
  })
}